Repository navigation
Conversation
Collaborator
|
@liamburja algo importante a implementar, se debe tener una configuracion de un check de permitir registrase con el dominio, y que todo lo que sea @dominio.com auto registre sin invitacion, para empresas es bastante importante |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Login con Google (SSO) por organización
Cada organización puede configurar su propio cliente OAuth de Google y permitir el login con Google, que convive con el login de email y contraseña.
Qué incluye
Configuración por organización en Ajustes → Global:
GITDB_ENCRYPTION_KEY) y nunca se devuelve a la UI.organization:settings:update.Flujo OIDC (Authorization Code + PKCE) en
/auth/sso/google/starty/auth/sso/google/callback:stateynonceviajan en una cookie firmada de un solo uso.id_tokense verifica contra el JWKS de Google (firma,iss,aud,exp).Acceso solo por invitación:
subde Google al usuario con el mismo email verificado.Detección de la organización en el login, en este orden:
?org=<slug>last_orgEl guard añade
?org=al redirigir desde/org/<slug>/....Nueva entidad GitDB
organization_auth_providers, que se borra junto con la organización.Traducciones es/en para el botón, los errores y los ajustes. SAML sigue siendo solo configuración.
Otros cambios
src/notificationsa la imagen final. Sin esto, el envío de emails (invitación, recuperar contraseña) fallaba en Docker porque no encontraba las plantillas.@gmail.com, test users) y nota de que la imagen Docker no incluye cliente SSH para remotos GitDBgit@....Cómo probar
/auth/sso/google/callback.Tests
sso.service,google-oidc.client,secret-cipher.service.bun run test,bun run check,bun run lintybun run builden verde.$env), que ya ocurría enmain.🤖 Generated with Claude Code
Related issue
Closes #
Change type
Verification
bun run checkbun run lintbun run testbun run format:checkReview notes
Mention migrations, environment variables, security implications, screenshots, known limitations, or follow-up work. Confirm that logs and screenshots contain no secrets.